package org.vectrics.recruiter.struts.tag;

import java.util.List;

import org.vectrics.common.pagelist.PageList;
import org.vectrics.recruiter.RecruitServiceLocator;
import org.vectrics.recruiter.user.resume.email.EmailedResumeCriteria;

public class EmailedResumePageList extends PageList {
	private EmailedResumeCriteria criteria = null;

	public EmailedResumePageList(EmailedResumeCriteria criteria) {
		super();
		this.criteria = criteria;
	}

	public int getTotalElementCount() {
		int count = RecruitServiceLocator.getRecruitUserService().findEmailedResumesCount(criteria);
		return(count);
	}

	public List getElements(int start, int end) {
		List elements = RecruitServiceLocator.getRecruitUserService().findEmailedResumes(criteria, 0, 1000);
		return elements;
	}

}
